package com.ml.mall.bean.req.company;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description 公司信息添加
 *
 * @author pl
 * @date 2021/6/15
 * @version 1.0
 */
@ApiModel(value = "公司添加用户")
@Data
@Accessors(chain = true)
public class CompanyRelationAddDto {
    @ApiModelProperty(value = "公司账户名，账号为邮箱")
    @NotBlank(message = "账户名不能为空")
    private String acc;

    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "名称2")
    @NotBlank(message = "名称2不能为空")
    private String lastName;

    @ApiModelProperty(value = "角色类型")
    @NotNull(message = "角色类型不能为空")
    private Integer roleId;

    @ApiModelProperty(value = "公司编号")
    @NotNull(message = "公司编号不能为空")
    private Long companyId;

    @ApiModelProperty(value = "用户邮箱")
    @NotNull(message = "用户邮箱不能为空")
    private String email;

    @ApiModelProperty(value = "用户状态")
    @NotNull(message = "用户状态不可为空")
    private Integer state;
}
